package com.hnas.tjhnaaw.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.hnas.tjhnaaw.dao.MerchantInfoDAO;
import com.hnas.tjhnaaw.orm.MerchantInfo;

@Component("merchantInfoService")
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
public class MerchantInfoServiceImpl implements MerchantInfoService {
	
	@Autowired
	private MerchantInfoDAO merchantInfoDAO;
	
	@Override
	public MerchantInfo getMerchantInfo(long id) {
		return this.merchantInfoDAO.find(id);
	}
	
}
